package ArrDemo;

public class ArrDemo4 {
    public static void main(String[] args) {
        int[] arr={3,5,6,7,5,47,-3};
        int min=arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(arr[i]<min)
            {
                min=arr[i];
            }
        }
        System.out.println(min);
    }

}
